<!DOCTYPE html>
<html lang="zh">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
	<meta name="author" content="小枫">
	<title>登陆 | <%= data.title %></title>
	<link rel="shortcut icon" type="image/x-icon" href="<%= data.icon %>">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-touch-fullscreen" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="default">
	<link rel="stylesheet" type="text/css" href="/admin/css/materialdesignicons.min.css">
	<link rel="stylesheet" type="text/css" href="/admin/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="/admin/css/animate.min.css">
	<link rel="stylesheet" type="text/css" href="/admin/css/style.min.css">
	<style>
		.geetest_footer_left .geetest_feedback,
		.geetest_footer_right {
			display: none !important;
		}
	</style>
</head>

<body class="bg-white overflow-x-hidden">
	<div class="row bg-white vh-100">
		<div class="col-md-6 col-lg-7 col-xl-8 d-none d-md-block" style="background-image: url('/admin/images/login-bg-7.jpg'); background-size: cover; position: relative;">
			<div class="d-flex vh-100">
				<div class="p-5 align-self-end">
					<h3 class="text-white" style="text-shadow: 0 0 1px rgba(0, 0, 0, .5);">欢迎使用 <%= data.title %></h3>
					<br><br>
					<strong class="text-white" id="randomCopy" style="text-shadow: 0 0 1px, rgba(0, 0, 0, .5);">加载中...</strong>
				</div>
			</div>
		</div>

		<div class="col-md-6 col-lg-5 col-xl-4 align-self-center">
			<div class="p-5">
				<div class="text-center">
					<a href="JavaScript:void(0);">
						<img alt="light year admin" src="/admin/images/logo.svg">
					</a>
				</div>
				<p class="text-center text-muted"><small>请使用您的账号登录系统</small></p>

				<form action="/api/users/login" method="post" class="signin-form needs-validation" novalidate>
					<div class="mb-3">
						<label for="username">用户名</label>
						<input type="text" class="form-control" id="username" name="username" placeholder="请输入您的用户名" autocomplete="off" required>
					</div>

					<div class="mb-3">
						<label for="password">密码</label>
						<input type="password" class="form-control" id="password" name="password" placeholder="请输入您的密码" autocomplete="off" required>
					</div>

					<div class="mb-3" id="loginKeyDiv">
						<label for="adminKey">登陆秘钥</label>
						<input type="text" class="form-control" id="adminKey" name="adminKey" placeholder="请输入您的登陆秘钥" autocomplete="off" required>
					</div>

					<div class="mb-3 d-grid">
						<button class="btn btn-primary" type="submit">立即登录</button>
					</div>
				</form>
				<p class="text-center text-muted mt-3">Copyright &copy; <span id="developmentYear"></span> <a target="_blank" href="https://www.xfabe.com" rel="noopener noreferrer">小枫网络</a>. All right reserved</p>
			</div>
		</div>
	</div>
	<% if (data.captchaId) { %>
	<div id="xf_captcha" data-captcha-id="<%= data.captchaId %>"></div>
	<script type="text/javascript" src="/admin/js/gt4.min.js"></script>
	<% } %>
	<script type="text/javascript" src="/admin/js/jquery.min.js"></script>
	<script type="text/javascript" src="/admin/js/popper.min.js"></script>
	<script type="text/javascript" src="/admin/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="/admin/js/lyear-loading.js"></script>
	<script type="text/javascript" src="/admin/js/bootstrap-notify.min.js"></script>
	<script type="text/javascript" src="/admin/js/nitai5pro/login.js"></script>
</body>

</html>